package net.zjitc.interfaces.charge;

/**
 * @Author admin
 * @Date 2019/3/22 11:25
 */
public class ChargeFactory {
    public static Charge getCharge(int s) {
        Charge charge;
        if (s == 1) {
            charge = new Bus();
        } else {
            charge = new Taxi();
        }
        return charge;
    }
}
